home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / swtools / generic / gizmos / mastergizmo.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  2.2 KB  |  124 lines

  1. /*
  2.  * Copyright 1991, 1992, 1993, 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17.  
  18. #include <gl.h>
  19. #include <device.h>
  20. #include "gizmo.h"
  21. #include "../generic.h"
  22.  
  23. void    initwidgetsmaster();
  24. void    activatewidgetsmaster();
  25. void    drawwidgetsmaster();
  26. long    getheightmaster();
  27. long    getwidthmaster();
  28. long    interpclickmaster(long, long, long, long);
  29. long    interpcharmaster(long);
  30. long    interpothermaster(long, long);
  31. void    locatemousemaster(long, long);
  32. long    readfromsocketmaster(long);
  33. long    sendpair(long, long);
  34.  
  35. gfblock_t    mastergfb = {
  36.     "Master Gizmo",
  37.     "Master",
  38.     initwidgetsmaster,
  39.     0,
  40.     activatewidgetsmaster,
  41.     drawwidgetsmaster,
  42.     0,
  43.     interpclickmaster,
  44.     interpcharmaster,
  45.     interpothermaster,
  46.     locatemousemaster,
  47.     readfromsocketmaster,
  48.     getheightmaster,
  49.     getwidthmaster,
  50. };
  51.  
  52. gfblock_t    *gfb = &mastergfb;
  53. long        gizmonumber = GIZMO_MASTER;
  54. extern  long    gizllx, gizlly;
  55.  
  56. long
  57. getheightmaster()
  58. {
  59.     return 100;        /* YWSIZE */
  60. }
  61.  
  62. long
  63. getwidthmaster()
  64. {
  65.     return 291;            /* XWSIZE */
  66. }
  67.  
  68.  
  69. void
  70. initwidgetsmaster()
  71. {
  72. }
  73.  
  74. void
  75. activatewidgetsmaster()
  76. {
  77. }
  78.  
  79. void
  80. drawwidgetsmaster()
  81. {
  82.     color(WHITE); clear();
  83.     color(BLACK);
  84.     cmov2i(10, 20);
  85.     charstr("Type character to touch file");
  86. }
  87.  
  88. long
  89. interpclickmaster(long mx, long my, long dev, long val)
  90. {
  91.     return 0;
  92. }
  93.  
  94. long
  95. interpothermaster(long dev, long val)
  96. {
  97.     return 0;
  98. }
  99.  
  100. long
  101. interpcharmaster(long val)
  102. {
  103.     sendpair(TOUCHME, 0);
  104. }
  105.  
  106. void
  107. locatemousemaster(long mx, long my)
  108. {
  109. }
  110.  
  111. long
  112. readfromsocketmaster(long dev)
  113. {
  114.     return 1;
  115. }
  116.  
  117. setenable()
  118. {
  119. }
  120.  
  121. turnoffchecks()
  122. {
  123. }
  124.